<%= render(:layout => "layout_for_partial", :locals => { :name => "David" }) do %>Inside from block<% end %>